define([], function() {
	var MessageBox = function(message, title, options, autoclose, settings) {
		this.message = message;
		this.title = title || MessageBox.defaultTitle;
		this.options = options || MessageBox.defaultOptions;
		this.autoclose = autoclose || false;
		this.settings = $.extend({}, MessageBox.defaultSettings, settings);
	};

	MessageBox.prototype.selectOption = function(dialogResult) {
		dialog.close(this, dialogResult);
	};
	return MessageBox;
})

//maybe client used
//app.showMessage('This is a message.').then(function(dialogResult){
////do something with the dialog result here
//});